package com.miya.system.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 添加用户dto
 *
 * @author Caixiaowei
 * @date 2022/02/23
 */
@Data
@ApiModel
public class EditUserDTO implements Serializable {
	private static final long serialVersionUID = 4994959428482681130L;

	@ApiModelProperty(value = "用户名id")
	@NotNull
	private Long id;

	@ApiModelProperty(value = "用户名")
	@NotNull
	private String username;

	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "部门id")
	@NotNull
	private Long deptId;

	@ApiModelProperty(value = "手机号")
	@NotNull
	private String mobile;

	@ApiModelProperty(value = "邮箱")
	@NotNull
	private String email;

	@ApiModelProperty(value = "性别: 0男 1女 2 保密")
	private Integer sex;

	@ApiModelProperty(value = "角色id")
	@NotNull
	private List<Long> roleIds;
}
